package com.iplatform.file.function.meta.vo;

import com.iplatform.file.function.meta.domain.PsMetaData;
import com.iplatform.module.annotation.KeyId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 *
 * @author Dair
 * @since 
 */

/**
    * 元数据目录表
    */
@Data
public class MetaDataDirVO implements Serializable {
    
    
    private static final long serialVersionUID = 1L;
    
    
    /**
    * 元数据目录id
    */
    @ApiModelProperty(value="元数据目录id")
    @KeyId
    private Long metaDataDirId;

    /**
    * 父id
    */
    @ApiModelProperty(value="父id,如果是根目录 不传")
    private Long pId;

    /**
    * 是否删除
    */
    @ApiModelProperty(value="是否删除",hidden = true)
    private String isDeleted;

    /**
    * 元数据目录名称
    */
    @ApiModelProperty(value="元数据目录名称")
    @NotEmpty(message = "元数据目录名称不能为空")
    private String dirName;
    
    @ApiModelProperty(value="子节点列表")
    private List<MetaDataDirVO> childrenList;
    
    @ApiModelProperty(value="元数据列表")
    private List<PsMetaData> psMetaDataList;
    
    
    public List<PsMetaData> getPsMetaDataList() {
        return psMetaDataList;
    }
    
    public void setPsMetaDataList(List<PsMetaData> psMetaDataList) {
        this.psMetaDataList = psMetaDataList;
    }
    
    public List<MetaDataDirVO> getChildrenList() {
        return childrenList;
    }
    
    public void setChildrenList(List<MetaDataDirVO> childrenList) {
        this.childrenList = childrenList;
    }
    
    public Long getpId() {
        return pId;
    }
    
    public void setpId(Long pId) {
        this.pId = pId;
    }
}